<div class="d-flex flex-row-reverse">
  <button nz-button (click)="reload()">
    重新加载
  </button>
</div>
<div>
  数目: {{occasions?.length}}
</div>
<div *ngFor="let occasion of occasions">
  <nz-card class="rounded-3 m-2">
    <div class="d-flex flex-row">
      <button nz-button [routerLink]="['edit',occasion.id]">
        编辑
      </button>
      <button nz-button
              nz-popconfirm
              nzPopconfirmTitle="确定要删除这个信息吗?"
              nzPopconfirmPlacement="right"
              (nzOnConfirm)="confirm(occasion.id)"
              (nzOnCancel)="cancel()"
      >
        删除
      </button>
    </div>
    <app-info [occasion]="occasion" [partUrl]="'me'" ></app-info>
  </nz-card>
</div>
<div *ngIf="occasions===undefined||occasions.length===0">
  你还没有发布，丢失或者拾到的信息。
</div>
